package com.sg.dto.biz.pbff.common;

import com.sg.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffBaseMetadataObjectPropertyDto
 * @使用场景
 */
@Data
public class BffBaseMetadataObjectPropertyDto extends PagedDto implements Serializable {

    /**
     * 对象属性ID
     */
    @ApiModelProperty("对象属性ID")
    private String objectPropertyId;

    /**
     * 对象属性名称
     */
    @ApiModelProperty("对象属性名称")
    private String objectPropertyName;

    /**
     * 业务对象中文名
     */
    @ApiModelProperty("业务对象中文名")
    private String businessObjectCnName;

    /**
     * 是否状态 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否状态")
    private String isStatus;

    /**
     * 操作人就职记录ID
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;

    /**
     * 操作时间
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;

    /**
     * 个人账号ID
     */
    @ApiModelProperty("个人账号ID")
    private String userId;

    /**
     * 真实头像
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    private String nickName;
    /**
     * 对象属性标识
     */
    @ApiModelProperty("对象属性标识")
    private String objectPropertyCode;

    /**
     * 对象属性类型 FIELD:字段 CLASS:分类 OTHER:其他
     */
    @ApiModelProperty("对象属性类型")
    private String objectPropertyTypeCode;

    /**
     * 是否枚举字段 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否枚举字段")
    private String isEnumeration;

    /**
     * 是否主键 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否主键")
    private String isPrimaryKey;

    /**
     * 字段更新是否前端显示 TRUE:是 FALSE:否
     */
    @ApiModelProperty("字段更新是否前端显示")
    private String isRecordVersion;

    /**
     * 对象属性别名
     */
    @ApiModelProperty("对象属性别名")
    private String objectPropertyAlias;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long orderNumber;

    /**
     * 是否存档 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否存档")
    private String isArchive;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否推送前端缓存 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否推送前端缓存")
    private String isPushCache;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffBaseMetadataObjectPropertyDto that = (BffBaseMetadataObjectPropertyDto) o;
        return objectPropertyId == that.objectPropertyId && objectPropertyName == that.objectPropertyName && businessObjectCnName == that.businessObjectCnName && isStatus == that.isStatus && operationInductionId == that.operationInductionId && operateTime == that.operateTime && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName && objectPropertyCode == that.objectPropertyCode && objectPropertyTypeCode == that.objectPropertyTypeCode && isEnumeration == that.isEnumeration && isPrimaryKey == that.isPrimaryKey && isRecordVersion == that.isRecordVersion && objectPropertyAlias == that.objectPropertyAlias && orderNumber == that.orderNumber && isArchive == that.isArchive && subjectLifeCycle == that.subjectLifeCycle && isPushCache == that.isPushCache;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), objectPropertyId, objectPropertyName, businessObjectCnName, isStatus, operationInductionId, operateTime, userId, userFace, idCardName, nickName, objectPropertyCode, objectPropertyTypeCode, isEnumeration, isPrimaryKey, isRecordVersion, objectPropertyAlias, orderNumber, isArchive, subjectLifeCycle, isPushCache);
    }


}
   